import http from "@/api";
import { ResPage } from "@/api/interface/index";
import { Forward } from "@/api/interface/iot";

/**
 * @name 硬网关管理模块
 */

// * 获取硬列表
export const getRuleList = (params: Forward.ReqRule) => {
	return http.get<ResPage<Forward.ResRule[]>>(`/forward/rule/find`, params);
};
// * 新增硬列表
export const addRule = (params: Forward.ResRule) => {
	return http.post(`/forward/rule/add`, params);
};
// * 删除硬列表
export const delRule = (params: Forward.ResRule) => {
	return http.post(`/forward/rule/remove`, params);
};
// * 编辑硬列表
export const modRule = (params: Forward.ResRule) => {
	return http.post(`/forward/rule/modify`, params);
};
